package org.example.user.service.User;

import com.github.pagehelper.PageInfo;
import org.example.user.entity.User;

import java.util.List;

public interface UserService {
    //根据用户名和邮箱查询是否被占用
    User findUserByNameorEmail(User user);
    //根据用户邮箱查询用户
    User findUserByEmail(String UserEmail);
//注册
    void register(String userName, String userEmail, String userPassWord, int userAge, String userSex, String userFrom, String userRegisterTime,Long deptid);

    User getMySelf(String Email);

    void updataUser(User user);

    PageInfo<User> getUserList(int pageNumber, int pageSize);

    List userl();
    User findUserByEmailAndPower(String UserEmail);
    //修改用户
    void updateUser(User user);

    String getUserInfo(String userEmail);

    String getUserPicture(String userEmail);
}
